You can use single-line
text to create one or more lines of text, where each text line is
an independent object that you can relocate, reformat, or otherwise
modify.
Use
single-line text (TEXT) to create one
or more lines of text, ending each line when you press ENTER. Each
text line is an independent object that you can relocate, reformat,
or otherwise modify.
When
you create single-line text, you assign a text style and set alignment. The
text style sets the default characteristics of the text object.
The alignment determines what part of the text character aligns
with the insertion point. Use the TEXT command to enter the text
in-place, or enter -text at the Command prompt to
enter the text at the Command prompt.
You can insert a field in single-line text.
A field is text that is set up to display data that might change.
When the field is updated, the latest value of the field is displayed.
The text styles used for single-line text are
the same as those used for multiline text. When you create text,
you assign an existing style by entering its name at the Style prompt.
If you need to apply formatting to individual words and characters,
use multiline text instead of single-line text.
You can also compress single-line text to fit
between points that you specify. This option stretches or squeezes
the text to fill the designated space.
The TEXTED system variable
specifies the user interface displayed for editing single-line text.
Align Single-Line Text
As
you create text, you can align it. That is, you can justify it with
one of the alignment options shown in the following illustrations.
Left alignment is the default. To left-align text, do not enter
an option at the Justify prompt.
To create single-line text
-
- Specify the insertion point for the first
character. If you press ENTER, the program locates the new text
immediately below the last text object you created, if any.
- Specify the height of the text. This
prompt is displayed only if text height is set to 0 in the current
text style.
A rubber-band line is
attached from the text insertion point to the cursor. Click to set
the height of the text to the length of the rubber-band line.
- Specify a text rotation angle.
You can enter an angle value or use your pointing
device.
- Enter the text. At the end of each line,
press ENTER. Enter more text as needed.
NoteText that would otherwise
be difficult to read (if it is very small, very large, or is rotated)
is displayed at a legible size and is oriented horizontally so that
you can easily read and edit it.
If you specify another point during this command,
the cursor moves to that point, and you can continue typing. Every
time you press ENTER or specify a point, a new text object is created.
- Press ENTER on a blank line to end the
command.
To specify a text style
when you create single-line text
-
- Enter s (Style).
- At the Style Name prompt, enter an existing
text style name.
If you first want to
see a list of text styles, enter ? and press
ENTER twice.
- Continue creating text.
To align single-line text
as you create it
-
- Enter j (Justify).
- Enter an alignment option. For example,
enter br to align text at its bottom-right
corner.
- Continue creating text.
CommandsQTEXT
Controls the display
and plotting of text and attribute objects.
STYLE
Creates, modifies, or
specifies text styles.
TEXT
Creates a single-line
text object.
System VariablesFONTALT
Specifies the alternate
font to be used when the specified font file cannot be located.
FONTMAP
Specifies the font mapping
file to be used.
MIRRTEXT
Controls how MIRROR
reflects text.
QTEXTMODE
Controls how text is
displayed.
TEXTED
Specifies the user interface
displayed for editing single-line text.
TEXTEVAL
Controls
how text strings entered with TEXT (using AutoLISP) or with -TEXT
are evaluated.
TEXTFILL
Controls the filling
of TrueType fonts while plotting.
TEXTQLTY
Sets the resolution
tessellation fineness of text outlines.
TEXTSIZE
Sets the default height
for new text objects drawn with the current text style.
TEXTSTYLE
Sets the name of the
current text style.